|
|
|
|
|
|
|
Private wsUsers As Workspace
Private dbUsers As Database
Private rsUsers As Recordset
Private blnUsersLoaded As Boolean
Private strDBName As String
Private intMaxTries As Integer
Private strUserIDProp As String
Private strTitle As String
'
Enum urUserAction
urLogIn = 0
urLogOut = 1
End Enum |
|
|
|
|
|
|
|
|
You use these variables to handle user logins and logouts, too. |
|
|
|
|
|
|
|
|
Now add the Property Let and Property Get routines to the class module (see Listing 21.8) |
|
|
|
|
|
|
|
|
Listing 21.8. Opening the dataset with the usrInit function. |
|
|
|
|
|
|
|
|
Public Property Get DBName() As Variant
DBName = strDBName
End Property
Public Property Let DBName(ByVal vNewValue As Variant)
strDBName = vNewValue
End Property
Public Property Get UserID() As Variant
UserID = strUserIDProp
End Property
Public Property Let UserID(ByVal vNewValue As Variant)
' na
End Property
Public Property Get LoginTitle() As Variant
LoginTitle = strTitle
End Property
Public Property Let LoginTitle(ByVal vNewValue As Variant)
strTitle = vNewValue
End Property
Public Property Get MaxTries() As Variant
MaxTries = intMaxTries
End Property
Public Property Let MaxTries(ByVal vNewValue As Variant)
intMaxTries = vNewValue
End Property |
|
|
|
|
|